import React from 'react'
import {
    Router,
    Route,
    Switch,
IndexRedirect
} from 'react-router-dom'
import {connect} from 'react-redux'
import createHistore from 'history/createHashHistory'
import localStore from '../utils/localStore'

//页面
import LayOut from '../containers/LayOut'
import Home from 'containers/Home'
import NotFound from "containers/NotFound"
import SelfScore from "containers/DetailScore"

// bootstrap
import 'node_modules/bootstrap/dist/css/bootstrap.min.css';
import 'node_modules/bootstrap/dist/js/bootstrap.min.js';
//引入boot皮肤
import 'node_modules/sb-admin-2/dist/css/sb-admin-2.min.css';
// font-awesome 字体
import 'node_modules/font-awesome/css/font-awesome.min.css';

const history = createHistore()

class RouterMap extends React.Component{
    render (){
        return(
            <Router history={history}>
                <switch>
                    <Route path='/' component={LayOut}></Route>
                </switch>
            </Router>
        )
    }
}

export default RouterMap